<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户注册</title>
</head>
<body>
<p style="color: red" th:text="${error}" th:if="${not #strings.isEmpty(error)}"></p>
<form th:action="@{/user/register}" method="post">
    用户名<input type="text" autocomplete="off" name="username"/><br/>
    邮箱<input type="text"  autocomplete="off" name="email"/><br/>
    密码<input type="text" autocomplete="off" name="password"/><br/>
    <input type="submit" value="注册"/><br/>
</form>
</body>
</html>